home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d12
/
v10n10.arc
/
TEST.PRG
< prev
Wrap
Text File
|
1991-04-29
|
951b
|
34 lines
* TEST.PRG - Test program to demonstrate use of C preprocessor *
*
#include "test.h" && Include files
#include "startup.h"
USE FILE && Note that FILE will be replaced
mchr = SPACER(fieldchr) && Note that SPACER will be replaced
mnum = INITIALNUM && Note that INITIALNUM will be replaced
mdat = TODAY && Note that TODAY will be replaced
@5,10 GET mchr PICTURECHR && Note that PICTURECHAR will be replaced
@6,10 GET mnum PICTURENUM && Note that PICTURENUM will be replaced
@7,10 GET mdat
READ
APPEND BLANK
REPLACE fieldchr WITH mchr ;
fieldnum WITH mnum ;
fielddat WITH mdat
QUIT
* STARTUP.H
CLEAR ALL
SET TALK OFF
SET BELL OFF
SET STATUS OFF
* TEST.H
#define FILE test
#define INITIALNUM 0
#define PICTURECHR PICTURE "!!!!!!!!!!"
#define PICTURENUM PICTURE "999999"
#define SPACER(n) SPACE(LEN(n))
#define TODAY DATE()